/*
 * @Author: moonwater 13812995013@163.com
 * @Date: 2025-03-03 11:21:15
 * @LastEditors: moonwater 13812995013@163.com
 * @LastEditTime: 2025-03-03 11:32:56
 * @FilePath: \盐师22Git仓库\day06\Teacher.java
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
package day06;

public class Teacher {
    //成员属性
    //姓名name
    private String name;
    
    private int age;

    private String subject;

    //构造方法 无参构造器  系统默认提供的构造方法
    //写不写系统都会提供
    public Teacher(){

    }

    public Teacher (String name,int age,String subject){
        
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getName() {
        return name;
    }
    public void setAge(int age) {
        this.age = age;
    }
    public int getAge() {
        return age;
    }
    public void setSubject(String subject) {
        this.subject = subject;
    }
    public String getSubject() {
        return subject;
    }

    public void show(){

    }
}
